

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>新增症状</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <#include "../../include/layui.ftl" />
</head>
<body>

  <div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-body" style="padding: 15px;">
        <form class="layui-form layui-form-pane" action="/console/com.fs.common.pojo.Disease/newAdd" lay-filter="layer-from">
          <input type="hidden" name="comId" value="${SESSION_USER.user.comId!}">
            <input type="hidden" name="parentId">
            <input type="hidden" name="pCode">
            <div class="layui-form-item">
                <label class="layui-form-label">所属症状</label>
                <div class="layui-input-block">
                    <input type="text" name="pName" autocomplete="off" class="layui-input" readonly>
                </div>
            </div>
          <div class="layui-form-item">
            <label class="layui-form-label">编码</label>
            <div class="layui-input-block">
              <input type="text" name="code" lay-verify="required" autocomplete="off" placeholder="请输入编码" class="layui-input">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">名称</label>
            <div class="layui-input-block">
              <input type="text" name="name" lay-verify="required" autocomplete="off" placeholder="请输入名称" class="layui-input">
            </div>
          </div>
         <#-- <div class="layui-form-item">
            <label class="layui-form-label">描述</label>
            <div class="layui-input-block">
                <textarea name="represent" placeholder="请输入描述" class="layui-textarea" style="resize: none;"></textarea>
            </div>
          </div>-->
          <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="text" name="sort" lay-verify="required|number" placeholder="请输入排序值" autocomplete="off"  class="layui-input">
            </div>
          </div>

          <div class="layui-form-item" hidden>
            <div class="layui-input-block">
              <button id="permissionSubmit" class="layui-btn" lay-submit lay-filter="*">
                保存
              </button>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>


  <script>
      layui.config({
          base: '${path}/plug-in/layuiadmin/' //静态资源所在路径
      }).extend({
          index: 'lib/index' //主入口模块
      }).use(['index','form','jquery'],function () {
          var form = layui.form,
                  $ = layui.$;
          var parentId = "0";
          var pCode = "";
          var pName = "无";
          if(!$.isEmptyObject(parent._data)){
              parentId = parent._data.id;
              pCode = parent._data.code;
              pName = parent._data.name;
          }
          form.val("layer-from",{
              "parentId":parentId,
              "pCode":pCode,
              "pName":pName
          });

      });
  </script>
</body>
</html>
